
export class BunKoa {

    middleware: Array<() => void>;

    constructor() {

        this.middleware = [];


    }

    use(fn: () => void) {

        if (typeof fn !== "function") throw new Error("middleware must be a function!");

        this.middleware.push(fn);

        return this;

    }


    listen() {

    }


}